package cn.sweet.listener;

import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.util.Producer;

/**
 * 修改事件
 *
 * @author wellhor Zhao
 * @version 1.0
 * @date 2021/12/7 12:26 PM
 **/
public class ModifyEvent {

    private CharSequence charSequence;
    private int begin;
    private int end;
    private int line;
    private int targetBytesLength;
    private VirtualFile virtualFile;
    private Producer<String> targetTextProducer;


    public int getTargetBytesLength() {
        return targetBytesLength;
    }

    public void setTargetBytesLength(int targetBytesLength) {
        this.targetBytesLength = targetBytesLength;
    }

    public VirtualFile getVirtualFile() {
        return virtualFile;
    }

    public void setVirtualFile(VirtualFile virtualFile) {
        this.virtualFile = virtualFile;
    }

    public Producer<String> getTargetTextProducer() {
        return targetTextProducer;
    }

    public void setTargetTextProducer(Producer<String> targetTextProducer) {
        this.targetTextProducer = targetTextProducer;
    }

    public int getBegin() {
        return begin;
    }

    public void setBegin(int begin) {
        this.begin = begin;
    }

    public int getEnd() {
        return end;
    }

    public void setEnd(int end) {
        this.end = end;
    }

    public int getLine() {
        return line;
    }

    public void setLine(int line) {
        this.line = line;
    }

    public CharSequence getCharSequence() {
        return charSequence;
    }

    public void setCharSequence(CharSequence charSequence) {
        this.charSequence = charSequence;
    }
}
